package com.liu.design.building.factory.simpleFactory;

/**
 * @author LIU
 * @version 1.0
 * @date 2022/12/20 14:29
 * @description: 简单工厂模式
 * 缺点：工厂类职责过重，不易扩展
 * jdk源码例子
 *  Calendar.getInstance();
 *  LoggerFactory.getLogger();
 */
public class Test {
    public static void main(String[] args) {
      CourseFactory factory = new CourseFactory();
        ICourse course = factory.CreateCourse(JavaCourse.class);
        course.record();
    }
}
